class CreateEntityAssocs < ActiveRecord::Migration
  def self.up
    create_table :entity_assocs do |t|
      t.integer :report_id
      t.integer :entity_id

      t.timestamps
    end
    
    add_index(:entity_assocs, [:report_id, :entity_id], :unique => true)
  end

  def self.down
    drop_table :entity_assocs
  end
end
